Skip to content

fix: remove deprecated dim parameter from linopy LinearExpression.groupby(...).sum() - #811

Merged
tgilon merged 3 commits into
masterfrom
fix/linopy-depr-param
Jul 31, 2026
Merged

fix: remove deprecated dim parameter from linopy LinearExpression.groupby(...).sum()#811
tgilon merged 3 commits into
masterfrom
fix/linopy-depr-param

Conversation

@daniel-rdt

@daniel-rdt daniel-rdt commented Jul 27, 2026

Copy link
Copy Markdown
Member

Changes proposed in this Pull Request

This PR removes dim argument from .groupby(...).sum() call in DSR daily dispatch constraint as it is no longer accepted by linopy >= 0.9.0 and no longer needed since groupby(...).sum() always reduces the grouped dimension which is in this case is already snapshots.

Checklist

Required:

  • Changes are tested locally and behave as expected.
  • Code and workflow changes are documented.
  • A release note entry is added to doc/release_notes.md.
  • The description is human-written and any AI-generated content is marked.

If applicable:

  • Changes in configuration options are reflected in scripts/lib/validation.
  • OET SPDX license header added to all touched files.
  • For new data sources or versions, these instructions have been followed.
  • New rules are documented in the appropriate doc/*.md files.

…oupby(...).sum()` for compatibility with linopy > v0.9.0
@daniel-rdt daniel-rdt self-assigned this Jul 27, 2026
@daniel-rdt daniel-rdt added the SB Scenario Building label Jul 27, 2026
@daniel-rdt
daniel-rdt marked this pull request as ready for review July 27, 2026 14:11
@daniel-rdt
daniel-rdt requested a review from tgilon July 27, 2026 14:11
Base automatically changed from merge-upstream-20260727 to master July 30, 2026 14:10
Comment thread doc/release_notes.md
@tgilon
tgilon merged commit bc12ea8 into master Jul 31, 2026
7 checks passed
@tgilon
tgilon deleted the fix/linopy-depr-param branch July 31, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SB Scenario Building

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants